<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="配置DNS服务（适用于OceanProtect E6000备份一体机）">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="ZH-CN_TOPIC_0000002164829006">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>配置DNS服务（适用于OceanProtect E6000备份一体机）</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="ZH-CN_TOPIC_0000002164829006"></a><a name="ZH-CN_TOPIC_0000002164829006"></a>

<h1 class="topictitle1">配置DNS服务（适用于OceanProtect E6000备份一体机）</h1>
<div><p>如需支持解析和访问自定义域名，请参考本章节配置DNS服务。</p>
<div class="section"><h4 class="sectiontitle">前提条件</h4><ul><li>DNS服务器已配置完成，并且运行正常。</li><li>存储系统与DNS服务器之间TCP/UDP协议53端口打开。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">背景信息</h4><ul><li>DNS服务器用于解析和访问外部域名地址。</li><li>如果需要配置备用DNS服务器，请保持主备DNS服务器间域名配置一致。</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>关闭安全沙箱。</span><p><ol type="a"><li>登录DeviceManager。</li><li>选择<span class="uicontrol">“集群 &gt; 集群 &gt; 硬件 &gt; 节点”</span>，单击<span class="uicontrol">“关闭安全沙箱”</span>。</li><li>选中所有节点，输入<span class="uicontrol">“root密码”</span>，单击<span class="uicontrol">“确定”</span>。</li><li>在<span class="uicontrol">“关闭安全沙箱”</span>弹框中输入DeviceManager登录界面用户的密码，勾选<span class="uicontrol">“我已阅读上述信息，了解执行此操作带来的后果。”</span>，单击<span class="uicontrol">“确定”</span>。</li></ol>
</p></li><li><span>使用PuTTY工具，以root用户登录<span>OceanProtect</span>集群的节点。</span><p><div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p><span>OceanProtect</span>集群中的所有节点都需执行后续操作。</p>
</div></div>
</p></li><li><span>执行<strong>vim /etc/resolv.conf</strong>命令，打开resolv.conf配置文件，按i进入编辑状态。在配置文件中添加以下内容：</span><p><pre class="screen"><em>nameserver DNS服务器的IP</em></pre>
</p></li><li><span>按“Esc”，输入<strong>:wq!</strong>保存退出。</span></li><li><span>开启安全沙箱。</span><p><ol type="a"><li>登录DeviceManager。</li><li>选择<span class="uicontrol">“集群 &gt; 集群 &gt; 硬件 &gt; 节点”</span>，单击<span class="uicontrol">“开启安全沙箱”</span>。</li><li>选中所有节点，单击<span class="uicontrol">“确定”</span>。</li></ol>
</p></li></ol>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>